home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mobiclic 124
/
MOBICLIC 124.ISO
/
mac
/
Milan.swf
/
scripts
/
__Packages
/
prod
/
hclasses
/
Curseur.as
next >
Wrap
Text File
|
2010-05-11
|
2KB
|
72 lines
class prod.hclasses.Curseur extends MovieClip
{
var CurseurFlecheFlash = false;
var CurseurDoigtFlash = false;
function Curseur()
{
super();
}
function hello()
{
xtrace("hello, je suis " + this._name);
}
function MoteurCurseur()
{
this._x = _root._xmouse;
this._y = _root._ymouse;
updateAfterEvent();
}
function Verrouiller()
{
clearInterval(this.CURSEUR_INT);
this.Verrou = true;
}
function Deverrouiller()
{
clearInterval(this.CURSEUR_INT);
this.CURSEUR_INT = setInterval(this,"MoteurCurseur",1);
this._x = _root._xmouse;
this._y = _root._ymouse;
this.Verrou = false;
}
function Action(p)
{
var _loc3_ = typeof p != "string" ? p.a : p;
var _loc5_ = this.CurseurFlecheFlash != true ? "nofleche" : "fleche";
var _loc6_ = this.CurseurDoigtFlash != true ? "nodoigt" : "doigt";
switch(_loc3_)
{
case _loc5_:
case _loc6_:
Mouse.show();
this._visible = false;
clearInterval(this.CURSEUR_INT);
break;
case "ACTIVER":
this.enabled = true;
break;
case "DESACTIVER":
this.enabled = false;
break;
default:
if(this.Verrou != true)
{
clearInterval(this.CURSEUR_INT);
this.CURSEUR_INT = setInterval(this,"MoteurCurseur",1);
this._x = _root._xmouse;
this._y = _root._ymouse;
}
Mouse.hide();
this._visible = true;
this.curseurs.gotoAndStop(_loc3_);
}
}
function Initialise()
{
_global.xtrace("INIT_CURSOR" + this.CurseurFlecheFlash);
_global.CURSEUR = this;
this.Verrou = false;
this.Action("fleche");
}
}